Optimal. Leaf size=361 \[ -\frac {2 B d (b c-a d) i^3 n (c+d x)}{b^3 g^3 (a+b x)}-\frac {B (b c-a d) i^3 n (c+d x)^2}{4 b^2 g^3 (a+b x)^2}+\frac {d^3 i^3 (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}-\frac {2 d (b c-a d) i^3 (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^3 (a+b x)}-\frac {(b c-a d) i^3 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^2 g^3 (a+b x)^2}-\frac {B d^2 (b c-a d) i^3 n \log (c+d x)}{b^4 g^3}-\frac {3 d^2 (b c-a d) i^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^3}+\frac {3 B d^2 (b c-a d) i^3 n \text {Li}_2\left (\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 361, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {2561, 46, 2393,
2341, 2351, 31, 2379, 2438} \begin {gather*} \frac {3 B d^2 i^3 n (b c-a d) \text {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^3}+\frac {d^3 i^3 (a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4 g^3}-\frac {3 d^2 i^3 (b c-a d) \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4 g^3}-\frac {2 d i^3 (c+d x) (b c-a d) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^3 g^3 (a+b x)}-\frac {i^3 (c+d x)^2 (b c-a d) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{2 b^2 g^3 (a+b x)^2}-\frac {B d^2 i^3 n (b c-a d) \log (c+d x)}{b^4 g^3}-\frac {2 B d i^3 n (c+d x) (b c-a d)}{b^3 g^3 (a+b x)}-\frac {B i^3 n (c+d x)^2 (b c-a d)}{4 b^2 g^3 (a+b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 46
Rule 2341
Rule 2351
Rule 2379
Rule 2393
Rule 2438
Rule 2561
Rubi steps
\begin {align*} \int \frac {(133 c+133 d x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{(a g+b g x)^3} \, dx &=\int \left (\frac {2352637 d^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^3}+\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^3 (a+b x)^3}+\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^3 (a+b x)^2}+\frac {7057911 d^2 (b c-a d) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^3 (a+b x)}\right ) \, dx\\ &=\frac {\left (2352637 d^3\right ) \int \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \, dx}{b^3 g^3}+\frac {\left (7057911 d^2 (b c-a d)\right ) \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{a+b x} \, dx}{b^3 g^3}+\frac {\left (7057911 d (b c-a d)^2\right ) \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(a+b x)^2} \, dx}{b^3 g^3}+\frac {\left (2352637 (b c-a d)^3\right ) \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(a+b x)^3} \, dx}{b^3 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}+\frac {\left (2352637 B d^3\right ) \int \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \, dx}{b^3 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \int \frac {(c+d x) \left (-\frac {d (a+b x)}{(c+d x)^2}+\frac {b}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{b^4 g^3}+\frac {\left (7057911 B d (b c-a d)^2 n\right ) \int \frac {b c-a d}{(a+b x)^2 (c+d x)} \, dx}{b^4 g^3}+\frac {\left (2352637 B (b c-a d)^3 n\right ) \int \frac {b c-a d}{(a+b x)^3 (c+d x)} \, dx}{2 b^4 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}+\frac {2352637 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^4 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \int \left (\frac {b \log (a+b x)}{a+b x}-\frac {d \log (a+b x)}{c+d x}\right ) \, dx}{b^4 g^3}-\frac {\left (2352637 B d^3 (b c-a d) n\right ) \int \frac {1}{c+d x} \, dx}{b^4 g^3}+\frac {\left (7057911 B d (b c-a d)^3 n\right ) \int \frac {1}{(a+b x)^2 (c+d x)} \, dx}{b^4 g^3}+\frac {\left (2352637 B (b c-a d)^4 n\right ) \int \frac {1}{(a+b x)^3 (c+d x)} \, dx}{2 b^4 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}+\frac {2352637 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^4 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}-\frac {2352637 B d^2 (b c-a d) n \log (c+d x)}{b^4 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \int \frac {\log (a+b x)}{a+b x} \, dx}{b^3 g^3}+\frac {\left (7057911 B d^3 (b c-a d) n\right ) \int \frac {\log (a+b x)}{c+d x} \, dx}{b^4 g^3}+\frac {\left (7057911 B d (b c-a d)^3 n\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^2}-\frac {b d}{(b c-a d)^2 (a+b x)}+\frac {d^2}{(b c-a d)^2 (c+d x)}\right ) \, dx}{b^4 g^3}+\frac {\left (2352637 B (b c-a d)^4 n\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^3}-\frac {b d}{(b c-a d)^2 (a+b x)^2}+\frac {b d^2}{(b c-a d)^3 (a+b x)}-\frac {d^3}{(b c-a d)^3 (c+d x)}\right ) \, dx}{2 b^4 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}-\frac {2352637 B (b c-a d)^3 n}{4 b^4 g^3 (a+b x)^2}-\frac {11763185 B d (b c-a d)^2 n}{2 b^4 g^3 (a+b x)}-\frac {11763185 B d^2 (b c-a d) n \log (a+b x)}{2 b^4 g^3}+\frac {2352637 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^4 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (c+d x)}{2 b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^4 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,a+b x\right )}{b^4 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \int \frac {\log \left (\frac {b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{b^3 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}-\frac {2352637 B (b c-a d)^3 n}{4 b^4 g^3 (a+b x)^2}-\frac {11763185 B d (b c-a d)^2 n}{2 b^4 g^3 (a+b x)}-\frac {11763185 B d^2 (b c-a d) n \log (a+b x)}{2 b^4 g^3}-\frac {7057911 B d^2 (b c-a d) n \log ^2(a+b x)}{2 b^4 g^3}+\frac {2352637 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^4 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (c+d x)}{2 b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^4 g^3}-\frac {\left (7057911 B d^2 (b c-a d) n\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{b^4 g^3}\\ &=\frac {2352637 A d^3 x}{b^3 g^3}-\frac {2352637 B (b c-a d)^3 n}{4 b^4 g^3 (a+b x)^2}-\frac {11763185 B d (b c-a d)^2 n}{2 b^4 g^3 (a+b x)}-\frac {11763185 B d^2 (b c-a d) n \log (a+b x)}{2 b^4 g^3}-\frac {7057911 B d^2 (b c-a d) n \log ^2(a+b x)}{2 b^4 g^3}+\frac {2352637 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^4 g^3}-\frac {2352637 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{2 b^4 g^3 (a+b x)^2}-\frac {7057911 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3 (a+b x)}+\frac {7057911 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (c+d x)}{2 b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^4 g^3}+\frac {7057911 B d^2 (b c-a d) n \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{b^4 g^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 331, normalized size = 0.92 \begin {gather*} \frac {i^3 \left (4 A b d^3 x-\frac {B (b c-a d)^3 n}{(a+b x)^2}-\frac {10 B d (b c-a d)^2 n}{a+b x}+10 B d^2 (-b c+a d) n \log (a+b x)+4 B d^3 (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )-\frac {2 (b c-a d)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{(a+b x)^2}-\frac {12 d (b c-a d)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{a+b x}+12 d^2 (b c-a d) \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )+6 B d^2 (b c-a d) n \log (c+d x)+6 B d^2 (-b c+a d) n \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac {b (c+d x)}{b c-a d}\right )\right )-2 \text {Li}_2\left (\frac {d (a+b x)}{-b c+a d}\right )\right )\right )}{4 b^4 g^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.19, size = 0, normalized size = 0.00 \[\int \frac {\left (d i x +c i \right )^{3} \left (A +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )\right )}{\left (b g x +a g \right )^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 2336 vs. \(2 (338) = 676\).
time = 0.72, size = 2336, normalized size = 6.47 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {i^{3} \left (\int \frac {A c^{3}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {A d^{3} x^{3}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {B c^{3} \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {3 A c d^{2} x^{2}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {3 A c^{2} d x}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {B d^{3} x^{3} \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {3 B c d^{2} x^{2} \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx + \int \frac {3 B c^{2} d x \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{a^{3} + 3 a^{2} b x + 3 a b^{2} x^{2} + b^{3} x^{3}}\, dx\right )}{g^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c\,i+d\,i\,x\right )}^3\,\left (A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )\right )}{{\left (a\,g+b\,g\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________